/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tt.cards.Company.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ylevkovych
 */
@Entity
@Table(name="COMPANY")
public class Company implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @Id @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="ID")
    private Long id;
    @Column(name="NAME")
    private String name;
    @Column(name="DESCRIPTION")
    private String description;	
    @Column(name="FULLNAME")
    private String fullName;
    @Column(name="LEGALADDRES")
    private String legalAddress;
    @Column(name="POSTADDRESS")
    private String postAddress;
    @Column(name="INN")
    private Long inn;
    @Column(name="KPP")
    private Long kpp;
    @Column(name="OKPO")
    private Long okpo;
    @Column(name="OKUD")
    private Long okud;
    
    

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    public String getFullName() {
	return fullName;
    }

    public void setFullName(String fullName) {
	this.fullName = fullName;
    }

    public String getLegalAddress() {
	return legalAddress;
    }

    public void setLegalAddress(String legalAddress) {
  	this.legalAddress = legalAddress;
    }

    public String getPostAddress() {
	return postAddress;
    }

    public void setPostAddress(String postAddress) {
	this.postAddress = postAddress;
    }

    public Long getInn() {
	return inn;
    }

    public void setInn(Long inn) {
	this.inn = inn;
    }

    public Long getKpp() {
	return kpp;
    }

    public void setKpp(Long kpp) {
	this.kpp = kpp;
    }

    public Long getOkpo() {
	return okpo;
    }

    public void setOkpo(Long okpo) {
    	this.okpo = okpo;
    }

    public Long getOkud() {
    	return okud;
    }

    public void setOkud(Long okud) {
    	this.okud = okud;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Company)) {
            return false;
        }
        Company other = (Company) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return name;
    }
    
}
